/* InstructionsView.cpp
 * Userfriendly instructions screen :)
 *
 * Last Modified: 16.01.2014
 * Author: Guilherme S.G.
 *
 * TODO:
 */
#include "InstructionsView.h"
#include "Game.h"


InstructionsView::InstructionsView() : View()
{
    
}

InstructionsView::~InstructionsView()
{
    
}

void InstructionsView::handleEvents(ALLEGRO_EVENT *event)
{
    if(event->type == ALLEGRO_EVENT_KEY_UP)
    {
        switch (event->keyboard.keycode)
        {
            case ALLEGRO_KEY_ESCAPE:
                controller->goToPreviousView();
                break;
        }
    }
}

void InstructionsView::update()
{
    
}

void InstructionsView::render()
{
    al_clear_to_color(al_map_rgb(255, 255, 0));
}
